//
//  NSString+ws.m
//  音乐与视频播放
//
//  Created by ws on 2017/6/19.
//  Copyright © 2017年 王松. All rights reserved.
//

#import "NSString+ws.h"

@implementation NSString (ws)
+(NSString *)ws_getMinuteSecondWithSecond:(NSTimeInterval)time{
    int minute = (int)time/60;
    int second = (int)time%60;
    if (second > 9) {
        return [NSString stringWithFormat:@"%d:%d",minute,second];
    }else{
        return [NSString stringWithFormat:@"%d:0%d",minute,second];
    }
}
@end
